<template>
  <div>
    <register-header></register-header>
  </div>
</template>
<script>
import RegisterHeader from "@/pages/register/components/Header"
export default {
  
   components: { 
     RegisterHeader,
  },
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
       next({ path: '/login', query: { historypath: "/register" }});
    }
  }
};
</script>